package com.ikas.autumn.iec104.module.protocol.enums;

import com.ikas.autumn.iec104.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 机理建模类型枚举
 *
 * @author lv.yi
 */
@Getter
@AllArgsConstructor
public enum ProtocolEnum implements BaseEnum<ProtocolEnum, String> {

    IEC("104", "104协议"),
    MQTT("mqtt", "mqtt协议"),
    HTTP("http", "http协议"),
    ;

    private final String code;
    private final String name;


    @Override
    public String getValue() {
        return code;
    }

    @Override
    public String getDisplayName() {
        return getName();
    }
}
